<div n:foreach="$form->controls as $input" n:class="$input->required ? required"></div>